﻿$(document).ready(function() {
	$(".headLoginCell").balloon({
			position: "bottom right"
		});
});

function setDocHeight() {
	var height = Math.max(
		$(document).height(),
		$(window).height(),
	/* For opera: */
		document.documentElement.clientHeight
    );

	height = height - $(".mainHeader").height() - $(".mainFooter").height() - 10;
	$(".mainBody").css("min-height", height);
}

function ExecuteWebService(params, url, callbackSuccess, callbackError) {
	$.ajax
    ({
    	async: false,
    	type: "POST",
    	url: url,
    	cache: false,
    	contentType: "application/json; charset=utf-8",
    	dataType: "json",
    	data: params,
    	success: callbackSuccess,
    	error: callbackError
    });
}